/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.negocio;

import java.util.Comparator;
import model.beans.Pedido;

/**
 *
 * @author Carol
 */
public class ComparaData implements Comparator<Pedido>{

    @Override
    public int compare(Pedido o1, Pedido o2) {
        return o1.getDtConserto().compareTo(o2.getDtConserto());
    }
    
}
